#include <iostream>

#include "RSA.hpp"

using namespace std;

int main() {
	RSA system;

	system.readParametersFromFile("RSA_Referenz.txt");

	cout << "Plaintext Block P:" << std::endl;
	Block x("FooBar");
	x.dump(cout);
	
	cout << "Ciphertext Block E(P):" << std::endl;
	system.encrypt(x).dump(cout);
	
	cout << "Decrypted Ciphertext Block D(E(P)):" << std::endl;
	system.decrypt(system.encrypt(x)).dump(cout);
	
	return 0;
}

